<?php

namespace controller;

use socket\HttpRequest;
use socket\HttpResponse;

class IndexController
{
    /**
     * 首页
     * @param   resource        $conn
     * @param   HttpRequest     $request
     * @param   HttpResponse    $responseWriter
     * */
    public static function index($conn, $request, $responseWriter) {
        print_r($request);
        $responseWriter::writeHttpResponse($conn, 200, '<p>test ok;</p>');
    }
}
